﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using TMS_Master.TmsEnum;
using Volo.Abp.Domain.Entities.Auditing;

namespace TMS_Master.Entities
{
    /// <summary>
    /// 物资领用表
    /// </summary>
    [Table("Goods_Receiving")]
    public class Goods_Receiving : AuditedAggregateRoot<Guid>
    {

        /// <summary>
        /// 标题
        /// </summary>
        [StringLength(20)]
        [Required]
        public string   GoodsTitle { get; set; }

        /// <summary>
        /// 用途描述
        /// </summary>
        [StringLength(200)]
        [Required]
        public string  UseInfo    { get; set; }

        /// <summary>
        /// 领用人
        /// </summary>
        [StringLength(20)]
        [Required]
        public string   RcName     { get; set; }

        /// <summary>
        /// 领用日期
        /// </summary>
        [Required]
        public DateTime RcTime     { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(200)]
        [Required]
        public string   Remark     { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Required]
        public DateTime CreateTime { get; set; }


        /// <summary>
        /// 审批状态
        /// </summary>
        public Status   IsState    { get; set; }

        /// <summary>
        /// 审批人
        /// </summary>
        [StringLength(20)]
        public string   Approver   { get; set; }

        /// <summary>
        /// 领用物品
        /// </summary>
        [Required]
        public int      GoodsItem  { get; set; }

        /// <summary>
        /// 删除状态
        /// </summary>
        public int IsDeleted { get; set; }
    }
}